@import '@/styles/common/variables.scss';
@import './phone_details.scss';
#detail_article{
  padding-bottom:  64px;
  font-size: 0;
  >.el-image{
    width: 100%;
    height: 0;
    padding-bottom: 50%;
    background-repeat: no-repeat;
    background-size: cover;
  }
  .detail_title{
    padding:  0px 0 32px;
    background-color: #ffffff;
    .title{
      color: #363434;
      font-size: 32px;
      font-weight: 700;
    }
    .label_time_num{
      display: flex;
      align-items: center;
      justify-content: space-between;
      height: 54px;
      border-bottom: 1px solid #F2F1F0;
      .label{
        .first_type{
          color: #7E7E7E;
          font-size: 12px;
          display: none;
        }

        span{
          padding: 0px 8px;
          background-color: #F2F1F0;
          border-radius: 2px;
          color: #7E7E7E;
          font-size: 12px;
          cursor: pointer;
          display: inline-block;
          height: 28px;
          line-height: 28px;
          margin: 8px 8px 0 0;
          &:hover{
            background-color: #CDCDCD;
            color: #363434;
          }
        }
      }
      .time_num{
        .time{
          display: inline-block;
          color: #CDCDCD;
          font-size: 14px;
          margin-right: 24px;
        }
        .num{
          display: inline-block;
          i{
            font-size: 14px;
            color: #CDCDCD;
          }
          span{
            color: #CDCDCD;
            font-size: 14px;
            margin-left: 8px;
          }
        }
      }
    }


  }
  // 猜你喜欢
  .you_like_cont{
    position: sticky;
    top: $menuHeight + 32px;
    .you_like_title{
      color: #363434;
      font-size: 16px;
      font-weight: 700;
      margin-bottom: 16px;
    }
    .you_like_item{
      display: flex;
      cursor: pointer;
      margin-bottom: 24px;
      &:last-child{
        border-bottom: none;
      }
      .you_like_item_image{
           width: 46%;
          height: 0;
          padding-bottom: 34.5%;
          overflow: hidden;
          margin-right: 8px;
          position: relative;
          p{
            background-position: center;
            background-size: cover;
            background-repeat: no-repeat;   
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
          }
        
      }

      >div{
        display: flex;
        flex-direction: column;
        width: 54%;
        justify-content: space-between;
        align-items: flex-start;
        >p{
          color: #363434;
          font-size: 14px;
        }
        >span{
          display: inline-block;
          height: 20px;
          line-height: 20px;
          padding: 0 10px;
          background-color: #F2F1F0;
          border-radius: 2px;
          font-size: 12px;
          color: #7E7E7E;
          margin: 8px 8px 0 0;
          &:hover{
            background-color: #CDCDCD;
            color: #363434;
          }
        }
      }
      &:hover{
        .el-image{
          img{
            transform: scale(1.12);
          }
        }
        >div{
          >p{
            color: #363434;
          }
        }
      }
    }
  }
  

  >.detail_comment{
    display: flex;
    justify-content: space-between;
    width: $homeW;
    margin: 32px auto 0;
    &.pcshow{
      display: flex;
    }
    &.phoneshow{
      display: none;
    }
    >.detail_comment_left{
      width: 29.5%;
      margin-left: 20px;
    }
    >.detail_comment_right{
      width: 70.5%;
      margin-right: 20px;
    }

    .user_comment{
      background-color: #ffffff;
      padding: 32px;
    
      .el-textarea .el-textarea__inner{
        background-color: #F9F9F9;
        border: none;
        outline: none;
        padding: 24px;
        min-height: 162px !important;
      }
      >.user_comment_btn{
        text-align: right;
      }
      >.user_comment_no{
        background-color: #F9F9F9;
        padding: 24px;
        border-radius: 6px;
        .title{
          color: #363434;
          font-size: 20px;
        }
        .sectitle{
          color: #666666;
          font-size: 14px;
          margin: 8px 0 16px;
        }
        .user_comment_btn{
          .el-button{
            width: 104px;
          }
          >span:first-of-type{
            color: #CCCCCC;
            font-size: 14px;
            margin: 0 24px;
          }
          >span:last-child{
            color: #666666;
            font-size: 14px;
            cursor: pointer;
            &:hover{
              color: #363434;
            }
          }
        }
      }
    }
    .article_comment{
      background-color: #ffffff;
      margin-top: 16px;
      padding: 32px 0px 0px;
  
      .article_comment_item{
        padding: 0 32px 0px;
        &.hasReply{
          padding-bottom: 24px;
        }
        .article_comment_user{
          >span:first{
            color: #363434;
            font-size: 14px;
            font-weight: 700;
          }
          >span:last-child{
            color: #CCCCCC;
            font-size: 14px;
            margin-left: 8px;;
          }
        }
        .article_comment_content{
          white-space: break-spaces;
          color: #666666;
          font-size: 14px;
          margin: 8px 0 16px;
          span{
            color: #363434;
          }
        }
        .article_comment_time{
          display: flex;
          justify-content: space-between;
          // height: 52px;
          align-items: center;
          color: #CCCCCC;
          font-size: 12px;
          padding-bottom: 18px;
          i{
            font-size: 16px;
            cursor: pointer;
            color: #cccccc;
            &:hover{
              color: #363434;
            }
          }
          
        }
        .article_input{
          text-align: right;
          opacity: 0;
          max-height: 0;
          .el-button{
            width: 144px;
            margin-top: 16px;
          }
          &.isFadeIn{
            padding-bottom: 24px;
          }

        }
        .article_comment_reply{
          border-radius: 4px;
          background-color:  #F9F9F9;
          padding-top: 24px;
          position: relative;
          &::before{
            content: "";
            display: block;
            border-top: none;
            border-right: 15px solid transparent;
            border-bottom: 15px solid #F9F9F9;
            border-left: 15px solid transparent;
            position: absolute;
            top: -12px;
            left: 15px;
          }
      
          li{
            list-style: none;
            padding-top: 24px;
            &.article_comment_item{
              margin-top: 0;
              margin-bottom: 0;
              padding: 0 24px 6px;
            }
            
          }
          .comment_more{
            height: 54px;
            line-height: 54px;
          }
        }
      }
      .comment_more{
        color: #666666;
        font-size: 14px;
        text-align: center;
        border-top: #EBEAEA 1px solid ;
        height: 70px;
        line-height: 70px;
        cursor: pointer;
      }
    }
  }
  // 评论内容
  .detail_content{
    padding: 0px 0px 32px ;
    background-color: #ffffff;
    font-size: 14px;
    white-space: break-spaces;
    img{
      max-width: 100%;
      overflow: hidden;
      object-fit: contain;
      height: auto;
    }
    a[href]{
      color: #0B95FD;
      &:hover{
        color: #047AD4;
      }
    }
  }

  .el-button.article_btn{
    margin-top: 16px;
    width: 144px;
    height: 44px;
    line-height: 44px;
    padding: 0;
    color: #FFFFFF;
    font-size: 14px;
    background-color: #CCCCCC;
    border: none;
  }

  .el-button.el-button--default{
    background-color: #CCCCCC;
    color: #FFFFFF;
    font-size: 14px;
    border-color: #CCCCCC;
    &:focus,
    &:hover{
      border-color: #CCCCCC;
    }
    &.isFull{
      border: none;
      background-color: #363434;
      &:hover{
        background-color: #666666;
      }
    }
  }


  .fixedRight{
    position: fixed;
    right: 40px;
    bottom: 80px;
    z-index: 10;
    p{
      width: 40px;
      height: 40px;
      z-index: 20;
      border-radius: 4px;
      background-color: rgba(48, 48, 48, 0.8);
      margin-bottom: 8px;
      text-align: center;
      line-height: 40px;
      &:hover{
        background-color: #363434;
      }
      cursor: pointer;
      i{
        font-size: 20px;
        color: #ffffff;
      }
      &.givelike{
        .icon-givealike_normal2{display: inline;}
        .icon-givealike_hover{display: none;}
        &.is_like,
        &:hover{
          .icon-givealike_normal2{display: none;}
          .icon-givealike_hover{display: inline;}
        }
      }
      &.collect{
        .icon-Collect_normal2{display: inline;}
        .icon-Collect_hover{display: none;}
        &:hover{
          .icon-Collect_normal2{display: none;}
          .icon-Collect_hover{display: inline;}
        }
      }
    }
  }

  
  @-webkit-keyframes smallColEffect1 { 0% { max-height: 0; }
  100% { max-height: 1000px; } }

  @keyframes smallColEffect1 { 0% { max-height: 0; }
  100% { max-height: 1000px; } }

  @-webkit-keyframes Effect1 { 0% { max-height: 0; }
  100% { max-height: 4000px; } }

  @keyframes Effect1 { 0% { max-height: 0; }
  100% { max-height: 4000px; } }

  @-webkit-keyframes Effect2 { 0% { opacity: 0; }
  100% { opacity: 1; } }

  @keyframes Effect2 { 0% { opacity: 0; }
  100% { opacity: 1; } }

  @-webkit-keyframes Effect3 { 0% { opacity: 1; }
  100% { opacity: 0; } }

  @keyframes Effect3 { 0% { opacity: 1; }
  100% { opacity: 0; } }

  @-webkit-keyframes Effect4 { 0% { max-height: 4000px; }
  100% { max-height: 0; } }

  @keyframes Effect4 { 0% { max-height: 4000px; }
  100% { max-height: 0; } }

  .isEffectComment { overflow: hidden; opacity: 0; max-height: 0; -webkit-animation-duration: 0.3s, 0.3s; animation-duration: 0.3s, 0.3s; -webkit-animation-timing-function: ease-in, ease-in; animation-timing-function: ease-in, ease-in; -webkit-animation-delay: 0s, 0.2s; animation-delay: 0s, 0.2s; -webkit-animation-fill-mode: both, both; animation-fill-mode: both, both; -webkit-animation-direction: alternate, alternate; animation-direction: alternate, alternate; }

  .isFadeIn { -webkit-animation-name: Effect1, Effect2; animation-name: Effect1, Effect2; }

  .reply-list-covers.isFadeIn, .quote-content-wrap .comment-list.isFadeIn, .comment-down-body .quote-content-wrap .comment-list.isFadeIn { -webkit-animation-name: smallColEffect1, Effect2; animation-name: smallColEffect1, Effect2; }

  .isFadeOutEffect { -webkit-animation-name: Effect3, Effect4; animation-name: Effect3, Effect4; }

  
  &.article{
    &.topH{
      .you_like_cont{
        top: $menuHeight + 32px + 80px;
      }
    }
    &.scroll {
      .extendData {
        opacity: 1;
      }


    }
    &.begin {
      .extendData {
        opacity: 0.7;
      }


    }
  }
  .extendData{
    height: 80px;
    line-height: 80px;
    position: fixed;
    top: $menuHeight;
    -webkit-transition: all .4s ease;
    -o-transition: all .4s ease;
    -moz-transition: all .4s ease;
    transition: all .4s ease;
    width: 100%;
    z-index: 22;
    background-color: #fff;
    border-bottom: 1px solid #F2F1F0;
    overflow: hidden;
    opacity: 0;
    >div{ 
      width: $homeW;
      margin: auto;
      >p{
        color: #363434;
        font-size: 20px;
        cursor: pointer;
        display: inline-block;
        margin-right: 48px;
        height: 100%;
        line-height: 80px;
        position: relative;
        &::after{
          content: '';
          position: absolute;
          height: 2px;
          width: 100%;
          background: #7e7e7e;
          bottom: 1px;
          left: 0;
          z-index: 10;
          -webkit-transform: scaleX(0);
          transform: scaleX(0);
          -webkit-transition: .3s ease-out;
          transition: .3s ease-out;
        }
        &.active{
          color: #363434;
          &::after{
            background: #363434;
            -webkit-transform: scaleX(1);
            transform: scaleX(1);
          }
        }
        &:hover{
          color: #7e7e7e;
          &::after{
            -webkit-transform: scaleX(1);
            transform: scaleX(1);
          }
        }
        // &.active{
        
        //   color: #363434;
        //   border-bottom: 3px solid #363434;
        // }
      }
      &.pdOne{
        >p{margin: 0;}
      }
    }
    
  }
// 猜你喜欢
  #youLike{
    .youLike_swiper{
      display: none;
    }
    .youLike_content{
      display: block;
    }
    .you_like_cont{
      background-color: #ffffff;
      padding: 16px 16px 0;
      margin-top: 16px;
    
      .you_like_item{
        display: flex;
        padding: 16px 0;
        border-bottom: 1px solid #EBEAEA;
        cursor: pointer;
        &:last-child{
          border-bottom: none;
        }
        .el-image{
          width: 128px;
          height: 90px;
          border-radius: 4px;
          margin-right: 16px;
          img{   
            object-fit: cover;
            transition: .6s ease-in-out;
         
          }
        }
        >div{
          display: flex;
          flex-direction: column;
          width: calc(100% - 144px);
          justify-content: space-between;
          align-items: flex-start;
          >p{
            display: -webkit-box;
            -webkit-line-clamp:2;
            overflow: hidden;
            text-overflow: ellipsis;
            -webkit-box-orient: vertical;
            color: #666666;
            font-size: 14px;
          }
          >span{
            display: inline-block;
            height: 24px;
            line-height: 24px;
            padding: 0 10px;
            background-color: #F9F9F9;
            border-radius: 2px;
            font-size: 14px;
            color: #666666;
          }
        }
        &:hover{
          .el-image{
            img{
              transform: scale(1.12);
            }
          }
          >div{
            >p{
              color: #363434;
            }
          }
        }
      }
    }
  }
  .discount_swiper{
    display: none
  }
// 折扣商品
  #promotion.detail_discount{
    &.phoneshow{
      display: none;
    }
    margin-right: 20px;
    margin-bottom: 8px;
    .detail_discount_title{
      >.title{color: #363434;font-size: 24px;margin-top: 16px;}
      >.secTitle{color: #363434;font-size: 16px;margin-top: 4px;margin-bottom: 16px;}
    }
    .detail_discount_item{
      width: 31.4%;
      margin-right: 2.9%;
      margin-bottom: 32px;
      cursor: pointer;
      &:nth-of-type(3n) {margin-right: 0;}
      // float: left;
      display: inline-block;
      font-size: 0;
      vertical-align: top;
      .detail_discount_item_image{
        width: 100%;
        height: 0;
        padding-bottom: 100%;
        overflow: hidden;
        position: relative;
        background-color: #F9F9F9;
        >p{
          position: absolute;
          top: 0;
          left: 0;
          width: 100%;
          height: 100%;
          background-position: center;
          background-repeat: no-repeat;
          background-size: cover;
          transition: .6s ease-in-out;

        }
        &:hover{
          >p{
            transform: scale(1.12);
          }

        }
      }
      .bottom{
        background-color: #ffffff;
        >p{
          color: #363434;
          font-size: 20px;
        }
        .money{
          display: flex;
          justify-content: space-between;
          align-items: center;
          margin: 8px 0 8px;
          .red{
            color: #DF3A32;
            font-size: 18px;
            font-weight: 700;
            margin-right: 6px;
          }
          .grey{
            text-decoration: line-through;
            color: #7E7E7E;
            font-size: 14px;
          }
          .discount{
            color: #7E7E7E;
            font-size: 14px;}
          >p:last-of-type{
            position: relative;
            top: 2px;
          }
        }
        .time{
          display: flex;
          justify-content: space-between;
          align-items: center;
          font-size: 14px;
          .blue{color: #1890FF;}
          .date{color: #7E7E7E}
        }
      }
      @include respond('1280'){
        width: 407px;
        .el-image{
          height: 304px;
        }
      }
    }
    .swiper_discount_btn{
      display: none;
    }
  }

}
#recommendation_article.phoneshow{display: none;}

#recommendation_article{
  margin-right: 20px;
  .swiper-container{
    display: none;
  }
  .productItem{
    width: 31.4%;
    margin-right: 2.9%;
    padding-bottom: 0;
    &:nth-of-type(3n){
      margin-right: 0;
    }
  }
}

#detail_article {
  .warranty_dialog.login_diaplog{
    &.el-dialog__wrapper{
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .el-dialog__header{
      padding: 0;
      .el-dialog__headerbtn{
        top: 16px;
        right: 16px;
      }
    }
    .el-dialog{
      margin-top: 0 !important;
      width: 464px;
      left: -8px;
      padding: 16px 32px 0;
    }
    .el-dialog__footer{
      text-align: center;
      padding: 0 0 32px 0;
      .el-button{
        height: 32px;
        width: 104px;
        &.btnWidth{
          width: 174px;
        }
      }
       .link{
        text-align: center;
        font-size: 12px;
        margin-top: 16px;
        color: #666666;
        >span{
          cursor: pointer;
          
          &:hover{
            color: #363434;
          }
          &:first-of-type{
            margin-right: 16px;
          }
          &:last-of-type{
            margin-left: 16px;
          }
        }
      }
    }
    .el-dialog__body{
      padding: 8px 0 0 ;
      .el-form {
        .title{
          text-align: center;
          color: #363434;
          font-size: 24px;
          font-weight: 700;
          margin-bottom: 16px;
        }
        .el-form-item {
          margin-bottom: 24px;
        }
        .password{
          i.iconfont {
            cursor: pointer;
            color: #666666;
            &:hover{
              color: #363434;
            }
          }
        }
      }
    }

    .el-button.login{
      background-color: #cccCCC;
      border: none;
      color: #fff;
      padding: 0 12px;
      min-width: 104px;
      width: 100%;
      height: 40px;
      line-height: 40px;
      &.isFull{
        border: none;
        background-color: #363434;
        color: #fff;;
        &:hover{
          background-color: #666666;
        }
      }
    }

  }
}


#detail_article {
  .warranty_dialog{
    &.el-dialog__wrapper{
      display: flex;
      align-items: center;
      justify-content: center;
    }
    .el-dialog__header{
      padding: 0;
      .el-dialog__headerbtn{
        top: 16px;
        right: 16px;
      }
    }
    .el-dialog{
      margin-top: 0 !important;
      width: 560px;
      left: -8px;
      padding: 16px 32px ;
    }
    .el-dialog__footer{
      text-align: center;
      padding: 0 0 32px 0;
    }
    .el-dialog__body{
      padding: 26px 32px 0;

    }
  }

 .warranty_dialog.share_dialog  .el-dialog__body{
    padding: 56px 0px;
    display: flex;
    align-items: center;
    justify-content: center;
 }
  .warranty_dialog .share_div{
    float: left;
    width: 64px;
    margin-right: 64px;
    text-align: center;
    &:last-of-type{
      margin-right: 0;
    }
    &:hover{
      p{
        color: #363434;
        cursor: pointer;
      }
      .svgIcon{
        .svgHover{opacity: 1;}
        .svgNormal{opacity: 0;}
      }
     
    }
    p{white-space: nowrap;margin-top: 16px;color: #CCCCCC;font-size: 14px;;}
    .svgIcon{
      position: relative;
      display: inline-block;
      cursor: pointer;
      border-radius: 50%;
      // &:hover{
      //   .svgHover{opacity: 1;}
      //   .svgNormal{opacity: 0;}
      // }
      .svgHover{opacity: 0;position: absolute;left: 0;top: 0;}
      .svgNormal{opacity: 1;}
      svg{
        width: 40px;
        height: 40px;
      }
    }
  }
}


.detail_comment_right{
  -webkit-transform: translateY(100px);
  -moz-transform: translateY(100px);
  -ms-transform: translateY(100px);
  -o-transform: translateY(100px);
  transform: translateY(100px);
  -webkit-transition: -webkit-transform ease 1s;
  transition: -webkit-transform ease 1s;
  -o-transition: -o-transform ease 1s;
  -moz-transition: transform ease 1s,-moz-transform ease 1s;
  transition: transform ease 1s;
  transition: transform ease 1s,-webkit-transform ease 1s,-moz-transform ease 1s,-o-transform ease 1s;
  transition: transform ease 1s,-webkit-transform ease 1s;
  opacity: 0.7;
  &.visible{
    opacity: 1;
    -webkit-transform: translateY(0);
    -moz-transform: translateY(0);
    -ms-transform: translateY(0px);
    -o-transform: translateY(0px);
    transform: translateY(0px);
  }
}
.detail_comment_left{
  .you_like_cont{
    -webkit-transform: translateY(150px);
    -moz-transform: translateY(150px);
    -ms-transform: translateY(150px);
    -o-transform: translateY(150px);
    transform: translateY(150px);
    -webkit-transition: -webkit-transform ease 1s;
    transition: -webkit-transform ease 1s;
    -o-transition: -o-transform ease 1s;
    -moz-transition: transform ease 1s,-moz-transform ease 1s;
    transition: transform ease 1s;
    transition: transform ease 1s,-webkit-transform ease 1s,-moz-transform ease 1s,-o-transform ease 1s;
    transition: transform ease 1s,-webkit-transform ease 1s;
    opacity: 0.7;
  }

  &.visible{
    .you_like_cont{
      opacity: 1;
      -webkit-transform: translateY(0);
      -moz-transform: translateY(0);
      -ms-transform: translateY(0px);
      -o-transform: translateY(0px);
      transform: translateY(0px);
    }

  }
}